#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START libnfs
reset_mtime libnfs libnfs/configure.ac
rm -rf build/libnfs
mkdir -p build/libnfs
cd build/libnfs
../../libnfs/configure \
	${CONFIGURE_ARGS} \
	--disable-static \
	--disable-utils \
	--disable-examples \
	${AUTOCRAP_KLUDGE}

make -j${JOBS}
make install DESTDIR=`pwd`/inst
wipe_la_files `pwd`/inst
# we are not installing utils, remove man pages
rm -rf "inst${prefix}/share"

cd inst
find "${prefix#/}" | cpio -pumd "$stage"
cd ../../..
rm -rf build/libnfs

# RECIPE END libnfs
